import pymongo
client=pymongo.MongoClient('127.0.0.1',27017)

db=client.zhihu
qa=db.qa

qa.update_one({"name":"李卓颖"},{"$set":{"name":"lidabao"}})

coll=qa.find()
qa.remove({'name':'lidabao'})

for i in coll:
    print(i)
